package com.ruoyi.project.system.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.project.system.domain.TShortanswer;

/**
 * 简答题库Mapper接口
 * 
 * @author ruoyi
 * @date 2020-05-09
 */
public interface TShortanswerMapper 
{
    /**
     * 查询简答题库
     * 
     * @param shortanswerId 简答题库ID
     * @return 简答题库
     */
    public TShortanswer selectTShortanswerById(Integer shortanswerId);

    /**
     * 查询简答题库列表
     * 
     * @param tShortanswer 简答题库
     * @return 简答题库集合
     */
    public List<TShortanswer> selectTShortanswerList(TShortanswer tShortanswer);

    /**
     * 新增简答题库
     * 
     * @param tShortanswer 简答题库
     * @return 结果
     */
    public int insertTShortanswer(TShortanswer tShortanswer);

    /**
     * 修改简答题库
     * 
     * @param tShortanswer 简答题库
     * @return 结果
     */
    public int updateTShortanswer(TShortanswer tShortanswer);

    /**
     * 删除简答题库
     * 
     * @param shortanswerId 简答题库ID
     * @return 结果
     */
    public int deleteTShortanswerById(Integer shortanswerId);

    /**
     * 批量删除简答题库
     * 
     * @param shortanswerIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTShortanswerByIds(Integer[] shortanswerIds);

    /***
     * 添加关联信息
     */
    public int addMiddle(Map<String,Integer> map);
    /***
     * 修改关联信息
     */
    public int updateMiddle(Map<String,Integer> map);
    /***
     * 删除关联信息
     */
    public int deleteMiddle(Map<String,Integer> map);
}
